package cn.yitun.chat.yitunserverimbase.dao.group;

import cn.yitun.chat.yitunservercommonlib.crud.yitun.CrudDao;
import cn.yitun.chat.yitunservercommonlib.dataentity.dto.group.GroupJoinVerifyAnswerDto;
import cn.yitun.chat.yitunservercommonlib.dataentity.po.group.GroupJoinVerifyAnswerInfo;
import cn.yitun.chat.yitunservercommonlib.dataentity.vo.group.GroupJoinVerifyAnswerVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 入群核实短答复表
 * @author chenyitun
 * @email chenyitun@163.com
 * @date 2020-05-27 14:42:53
 */
@Mapper
public interface GroupJoinVerifyAnswerDao extends CrudDao<GroupJoinVerifyAnswerDto, GroupJoinVerifyAnswerInfo, GroupJoinVerifyAnswerVo> {

	int absDel(Long id);

	int batchAbsDel(Long[] ids);

	/**
	 * 批量保存
	 * @param list
	 * @return
	 */
    int saveList(@Param("list") List<GroupJoinVerifyAnswerDto> list);

	/**
	 * 获取群回复
	 * @param groupIds
	 * @param applyIds
	 * @return
	 */
	List<GroupJoinVerifyAnswerVo> getListByApplyIds(@Param("groupIds") List<Long> groupIds,
													@Param("applyIds") List<Long> applyIds);
}
